/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package java1;

import static jdk.nashorn.internal.objects.NativeArray.map;

/**
 *
 * @author Yu
 */
public class Java1 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
              java.util.HashMap map = new  java.util.HashMap( );
	      map.put ("Tom","02-23456789");
	      map.put ("Mary","03-56789");
	      map.put ("Bob","04-33333789");
	      
	      String tel=(String) map.get("Mary");
	      System.out.println(tel);
	      map.put("Mary"," 07-9999789");
	      tel=(String) map.get("Mary");
	      System.out.println(tel);
	      tel=(String ) map.get("john");
	      System.out.println(tel);

    }
    
}
